package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.TAccountRecordMapper;
import com.ruoyi.domain.TAccountRecord;
import com.ruoyi.service.ITAccountRecordService;

/**
 * 账户操作明细Service业务层处理
 * 
 * @author mzr
 * @date 2023-12-13
 */
@Service
public class TAccountRecordServiceImpl implements ITAccountRecordService 
{
    @Autowired
    private TAccountRecordMapper tAccountRecordMapper;

    /**
     * 查询账户操作明细
     * 
     * @param id 账户操作明细主键
     * @return 账户操作明细
     */
    @Override
    public TAccountRecord selectTAccountRecordById(Long id)
    {
        return tAccountRecordMapper.selectTAccountRecordById(id);
    }

    /**
     * 查询账户操作明细列表
     * 
     * @param tAccountRecord 账户操作明细
     * @return 账户操作明细
     */
    @Override
    public List<TAccountRecord> selectTAccountRecordList(TAccountRecord tAccountRecord)
    {
        return tAccountRecordMapper.selectTAccountRecordList(tAccountRecord);
    }

    /**
     * 新增账户操作明细
     * 
     * @param tAccountRecord 账户操作明细
     * @return 结果
     */
    @Override
    public int insertTAccountRecord(TAccountRecord tAccountRecord)
    {
        return tAccountRecordMapper.insertTAccountRecord(tAccountRecord);
    }

    /**
     * 修改账户操作明细
     * 
     * @param tAccountRecord 账户操作明细
     * @return 结果
     */
    @Override
    public int updateTAccountRecord(TAccountRecord tAccountRecord)
    {
        return tAccountRecordMapper.updateTAccountRecord(tAccountRecord);
    }

    /**
     * 批量删除账户操作明细
     * 
     * @param ids 需要删除的账户操作明细主键
     * @return 结果
     */
    @Override
    public int deleteTAccountRecordByIds(Long[] ids)
    {
        return tAccountRecordMapper.deleteTAccountRecordByIds(ids);
    }

    /**
     * 删除账户操作明细信息
     * 
     * @param id 账户操作明细主键
     * @return 结果
     */
    @Override
    public int deleteTAccountRecordById(Long id)
    {
        return tAccountRecordMapper.deleteTAccountRecordById(id);
    }

    @Override
    public List<TAccountRecord> loadAccountRecordListForExport(TAccountRecord tAccountRecord) {
        return tAccountRecordMapper.loadAccountRecordListForExport(tAccountRecord);
    }
}
